from django.contrib import admin
from django.urls import path,re_path,include
from rest_framework_jwt.views import obtain_jwt_token
from . import views
from rest_framework.routers import SimpleRouter,DefaultRouter
from .views import purchase,choose_goods




urlpatterns = [

   # re_path(r'^user/login/$', obtain_jwt_token), #jwt的签发 和认证token的视图类
    re_path(r'^api/generate_code/$', choose_goods.ChoiceGoodsView.as_view())

]

router=DefaultRouter()
#router.register(r'menus',views.MenuView)
router.register(r'purchase',purchase.PurchaseView)



urlpatterns+=router.urls
